package com.lbd.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lbd.common.utils.PageUtils;
import com.lbd.gulimall.product.entity.AttrEntity;
import com.lbd.gulimall.product.vo.AttrResponseVO;
import com.lbd.gulimall.product.vo.AttrVO;

import java.util.List;
import java.util.Map;

/**
 * 商品属性
 *
 * @author linbd
 * @email 2236000738@qq.com
 * @date 2021-06-04 17:54:47
 */
public interface AttrService extends IService<AttrEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void saveAttr(AttrVO attrVO);

    PageUtils queryAttrList(Map<String, Object> params, Long catelogId, String type);

    AttrResponseVO getAttrInfo(Long attrId);

    void updateAttr(AttrVO attrVO);

    List<AttrEntity> getRelation(Long attrgroupId);

    PageUtils getNoAttrRelation(Long attrgroupId, Map<String, Object> params);

    List<Long> selectByIds(List<Long> attrIds, int searchType);
}

